<div class="box-content">
    <form class="form-horizontal" method="post" action="validation/create_list">
        <fieldset>
            <tr>
    			  <th>DS SV lam khao sat:</th>
    			  <th>&nbsp;</th>
    		  </tr>
              <div class="control-group">
				<label class="control-label" for="stid">Loai Khao Sat:</label>
				<div class="controls">
					<select id="stid" name="stid" class="span" data-rel="chosen">
                        <option></option>
                        <?php foreach($stlist as $row){?>
						     <option value="<?php echo $row['survey_type_id'];?>"><?php echo $row['survey_type_name']; ?></option>
                        <?php };?>
					</select>
                    <input type="hidden" id="st_id" name="st_id"/>
				</div>
               </div>
               <div class="control-group">
				<label class="control-label" for="year">Nam:</label>
				<div class="controls">
					<select id="year" name="year" size="16" data-rel="chosen">
                        <option></option>
                        <?php   $now = date('Y');
                                //$y == $now("year");
                                for($i=1995 ;$i<= $now;$i++ ){?>
						     <option value="<?php echo $i ; ?>"> 
                                            <?php echo $i ; ?> 
                             </option>
                        <?php };?>
					</select>
                    <input type="hidden" id="yea" name="yea"/>
				</div>
               </div>
               <div class="control-group">
				<label class="control-label" for="facul">Khoa:</label>
				<div class="controls">
					<select id="facul" name="facul" class="span8" data-rel="chosen">
                        <option></option>
                        <option value="0">All</option>
                        <?php foreach($faculty as $row){?>
						     <option value="<?php echo $row['faculty_id'];?>"><?php echo $row['faculty_name']; ?></option>
                        <?php };?>
					</select>
                    <input type="hidden" id="faculty" name="faculty"/>
				</div>
                
                <div class="control-group">
					<label class="control-label" for="percen">Ngau Nhien:</label>
					<div class="controls">
						<select id="percen" name="percen" class="span8" data-rel="chosen">
                            <option value="20">20</option>
                            <option value="30">30</option>
                            <option value="40">40</option>
                            <option value="50">50</option>
                            <option value="60">60</option>
                            <option value="70">70</option>
                            <option value="80">80</option>
                            <option value="90">90</option>
                            <option value="100">100</option>
						</select>
                        <input type="hidden" id="per" name="per"/>
					</div>
               </div>
               <div class="form-actions">
                    <button type="submit" name="submit" value="search" class="btn btn-primary">Loc: </button>
               </div>
        </fieldset>
    </form>
</div>   
    

        <div class="box-content">
			<table class="table">
				  <thead>
					  <tr>
						  <th>Danh sach Sinh Vien</th>
						  <th>&nbsp;</th>
					  </tr>
				  </thead>   
				  <tbody>
                  
                  
                  <?php if($ilist!= null){
                    $i=0;
                        foreach($ilist[$i++] as $row){
                           //$i++;                             ?>
                      <tr>
                        <td>
                                    <?php echo $row['first_name']?> 
                                    &nbsp;
                                    <?php echo $row['last_name']?>                          
                        </td>
                        <td class="right">
                         <div class="box-content">
                            <form class="form-horizontal" method="post" action="validation/add_validation_survey">
                            <fieldset>
                                <div class="control-group">
                                    <input type="hidden" id="inforid" name="inforid" value="<?php echo $row['infor_id']?>" />   
                                </div>
            					<a class="btn btn-info btn-setting" id="dung" name="dung">
            						<i class="icon-edit icon-white"></i>
            						Dung
            					</a>
            					<a class="btn btn-danger btn-setting" id="sai" name="sai" >
            						<i class="icon-trash icon-white"></i> 
            						Sai
            					</a>
                                <div class="controls">
                                        <input type="hidden" id="valida" name="valida" value="0"/>
                                </div> 
                                <div class="form-actions">
                                    <div class="controls">
                                        <input class="input-xlager span8" type="text" id="note" name="note"/>
                                    </div>
                                    <button type="submit" name="submit" value="save" class="btn btn-primary">Luu</button>
                                </div>
                            </fieldset>
                            </form>
                        </div>
    				    </td>
                      </tr> 
                      
                      <?php   //$i++;
                                }
                                } ?> 
                  
                  </tbody>
            </table>
        </div>
    
<script>
    $(document).ready(function(){
        $('#dung').click(function(){
             $('#val').val("1");
        });
        $('#sai').click(function(){
             $('#val').val("2");
    
        });
        $('#stid').change(function(){
            $('#st_id').val($('#stid').val());
            //alert( $('#st_id').val());
            
        });
        $('#year').change(function(){
            $('#yea').val($('#year').val());
            //alert( $('#yea').val());
        });
        $('#facul').change(function(){
            $('#faculty').val($('#facul').val());
            //alert( $('#faculty').val());
        });
        $('#percen').change(function(){
            //$number = $('#percen').val();
            //alert($number);
            $('#per').val($('#percen').val());
            //$num2 = $('#per').val();
            //alert($num2);
        });
        
    });
</script>
